package com.lvmama.java.rhino.spark.utils.copy;

import net.sf.cglib.core.Converter;

import java.util.HashMap;
import java.util.Map;

/**
 * 属性转化器
 * Created by chenrui on 16/1/13.
 */
public abstract class BeanCopierConverter implements Converter {

    private Class<?> srcClazz;

    private Class<?> targetClazz;

    private Map<String, String> propertyMap = new HashMap<String, String>();

    public BeanCopierConverter(Class<?> srcClazz, Class<?> targetClazz) {
        this.srcClazz = srcClazz;
        this.targetClazz = targetClazz;
    }

    public Class<?> getSrcClazz() {
        return srcClazz;
    }

    public Class<?> getTargetClazz() {
        return targetClazz;
    }

    public Map<String, String> getPropertyMap() {
        return propertyMap;
    }

    public void putPropertyMap(String left, String right) {
        propertyMap.put(left, right);
    }
}
